package com.tcc.fastline.Helpers;

import com.tcc.fastline.Fragments.ConteudoFragment;
import com.tcc.fastline.Fragments.Factory.FragmentFactory;
import com.tcc.smartqueue.R;

import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.util.Log;


public class NavigationHelper {
	
	public static FragmentManager manager;
	
	public static void exibirPagina(int layout) {

		ConteudoFragment conteudo = null;

		conteudo = FragmentFactory.getFragment(layout);

		FragmentTransaction forecastFragmentTransaction = manager.beginTransaction();

		forecastFragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);

		forecastFragmentTransaction.replace(R.id.conteudo, conteudo);

		forecastFragmentTransaction.commit();

	}
}
